<%-- 
    Document   : finish_job
    Created on : Feb 13, 2013, 1:13:03 AM
    Author     : owtee
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<link href="../css/smoothness/jquery-ui-1.10.0.custom.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../js/jquery-ui-1.10.0.custom.js"></script>  
<script type="text/javascript" src="../js/report.js"></script>

<div id="templatemo_main_wrapper">
    <div id="templatemo_main">
        <div id="content">             
            <div id="home" class="section">                                
                <table align="center" border="0">
                    <tr>
                        <td>
                            <form method="POST" action="FinishJob">                                                            
                                <table align="center" width="500px" border="0">
                                    <tr>
                                        <td colspan="4">${message.getMesDetail()}</td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: right; width: 25%;">วันที่กำหนด รับ / ส่ง :</td>
                                        <td style="text-align: left; width: 25%">                                            
                                            <input type="text" id="txtExpectedDate" name="txtExpectedDate" value="${txtExpectedDate}" style="width: 80px;"/>
                                        </td>
                                        <td style="text-align: left; width: 25%">
                                            <input type="image" src="../images/search.gif" onmouseout="src='../images/search.gif'" onmouseover="src='../images/search_hover.gif'" name="submit" value="ค้นหา" />
                                        </td>
                                        <td style="text-align: left; width: 25%">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">&nbsp;</td>
                                    </tr>
                                </table>
                            </form>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: left;">                            
                            <input type="button" value="กลับสู่เมนูหลัก" onclick="location.href='../view/menu.jsp'"/>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <fieldset>
                                <legend> :: Report finish job :: </legend>
                                    <table class="tbl_full" width="700px" align="center">
                                        <thead>
                                            <td width="25%">วันที่กำหนด รับ / ส่ง</td>
                                            <td width="25%">ปิดงานเรียบร้อย</td>
                                            <td width="25%">ยังไม่ปิดงาน</td>
                                            <td width="25%">งานทั้งหมด</td>                                                
                                        </thead>
                                        <c:forEach items="${rptFinishJobLst}" var="rptFinishJob" varStatus="status">
                                            <tbody>
                                                <td style="text-align: center;">${rptFinishJob.getExpectedDateFormat()}</td>
                                                <td style="text-align: center;">
                                                    <a href="GetCloseJob?expectDate=${rptFinishJob.getExpectedDateFormat()}">${rptFinishJob.getCloseJob()}</a>
                                                </td>
                                                <td style="text-align: center;">
                                                    <a href="GetNotCloseJob?expectDate=${rptFinishJob.getExpectedDateFormat()}">${rptFinishJob.getNotCloseJob()}</a>
                                                </td>
                                                <td style="text-align: center;">${rptFinishJob.getTotalJob()}</td>
                                            </tbody>
                                        </c:forEach>                                        
                                    </table>
                            </fieldset>
                        </td>
                    </tr>                                            
                </table>                
            </div>                         
        </div> 
    </div>
</div>
